#ifndef ASTVIEWMODEL_H
#define ASTVIEWMODEL_H

#pragma once

#include "qjsonmodel.h"

class AstViewModel : public QJsonModel
{
public:
    explicit AstViewModel(QObject *parent = nullptr);
    AstViewModel(const QString &fileName, QObject *parent = nullptr);
    AstViewModel(QIODevice *device, QObject *parent = nullptr);
    AstViewModel(const QByteArray &json, QObject *parent = nullptr);
    ~AstViewModel();
    QVariant data(const QModelIndex &index, int role) const;
    QVariant headerData(int section, Qt::Orientation orientation, int role) const;
    Qt::ItemFlags flags(const QModelIndex &index) const;
    bool AstViewModel::loadJson(const QByteArray &json);

private:
};

#endif